package com.laixu.estore.dao;

import com.laixu.estore.bean.pojo.Shopcar;
import com.laixu.estore.bean.vo.ShopcarVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Auther: vanse(lc)
 * @Date: 2025/4/11-04-11-11:44
 * @Description：com.briup.estore.dao
 */
public interface ShopCarDao {
    Shopcar findCarByuserIdAndBookId(@Param("userId") int userId,
                                     @Param("bookId") Integer bookId);

    void insertCar(Shopcar shopcar);

    void updateCar(Shopcar shopcarDB);

    List<ShopcarVo> getShopCar(String userId);
    Shopcar getById(Integer shopCarId);

    void deleteByIds(@Param("shopCarIds") List<Integer> shopCarIds);

    void deleteById(Integer shopCarId);

}